package com.daqian.chance.common.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * jwt相关配置
 */
@Component
@ConfigurationProperties(prefix = "chance.jwt")
@Data
public class JwtProperties {
    private String header = "Authorization";

    private String secret = "defaultSecret";

    private Long expiration = 604800L;// 7天

    private String authPath = "auth";

    private String md5Key = "randomKey";

}
